--铁甲铸成
local tiejiazhucheng = fk.CreateSkill {
    name = "mcdh_tiejiazhucheng",
    tags ={ Skill.Compulsory}
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

tiejiazhucheng:addEffect(fk.PreCardEffect,{
    can_trigger = function (self, event, target, player, data)
        return player.id == data.to and player:hasSkill(self) and
                data.card.trueName == "slash" and data.card.color == Card.Black and
                #player:getAvailableEquipSlots(Card.SubtypeArmor) > 0 and not player:getEquipment(Card.SubtypeArmor) and player:getMark(fk.MarkArmorNullified) == 0
    end,
    on_use = function (self, event, target, player, data)
        player.room:broadcastPlaySound("./packages/standard_cards/audio/card/nioh_shield")
        player.room:setEmotion(player, "./packages/standard_cards/image/anim/nioh_shield")
        return true
    end,
})

Fk:loadTranslationTable {
    ["mcdh_tiejiazhucheng"] = "铁甲铸成",
    [":mcdh_tiejiazhucheng"] = "锁定技。若你的装备区里没有防具牌，你视为装备着【仁王盾】。",
}

return tiejiazhucheng